<template>
  <div>
    <ul class="mui-table-view">
      <li class="mui-table-view-cell mui-media" v-for="item in list" :key="item.id">
        <router-link :to="'/home/newsInfo/'+item.id">
          <img class="mui-media-object mui-pull-left" :src="item.img" />
          <div class="mui-media-body">
            {{item.content}}
            <div>
              <p class="mui-ellipsis">
                <span>点击：{{item.count}}</span>
                <span>日期：{{item.date | dataFormat}}</span>
              </p>
            </div>
          </div>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          id: 1,
          content: "幸福的定义是什么",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4159656544,2092476407&fm=173&app=49&f=JPEG?w=312&h=208&s=39937095462278A6C01C52D8030060B7",
          count: 0,
          date: new Date(),
        },
        {
          id: 2,
          content: " 想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.",
          img:
            "https://dgss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2461745328,2552791523&fm=173&app=49&f=JPEG?w=312&h=208&s=4472A277D213EF98DA9561E00300E032",
          count: 5,
          date: new Date(),
        },
        {
          id: 3,
          content: "烤炉模式的城，到黄昏，如同打翻的调色盘一般.",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3999660853,2405177891&fm=173&app=49&f=JPEG?w=312&h=208&s=3BBC268F520645F50BAD75FA0300E039",
          count: 0,
          date: new Date(),
        },
        {
          id: 4,
          content: "幸福的定义是什么",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4159656544,2092476407&fm=173&app=49&f=JPEG?w=312&h=208&s=39937095462278A6C01C52D8030060B7",
          count: 0,
          date: new Date(),
        },
        {
          id: 5,
          content: " 想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.",
          img:
            "https://dgss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2461745328,2552791523&fm=173&app=49&f=JPEG?w=312&h=208&s=4472A277D213EF98DA9561E00300E032",
          count: 5,
          date: new Date(),
        },
        {
          id: 6,
          content: "烤炉模式的城，到黄昏，如同打翻的调色盘一般.",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3999660853,2405177891&fm=173&app=49&f=JPEG?w=312&h=208&s=3BBC268F520645F50BAD75FA0300E039",
          count: 0,
          date: new Date(),
        },
        {
          id: 7,
          content: "幸福的定义是什么",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4159656544,2092476407&fm=173&app=49&f=JPEG?w=312&h=208&s=39937095462278A6C01C52D8030060B7",
          count: 0,
          date: new Date(),
        },
        {
          id: 8,
          content: " 想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.",
          img:
            "https://dgss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2461745328,2552791523&fm=173&app=49&f=JPEG?w=312&h=208&s=4472A277D213EF98DA9561E00300E032",
          count: 5,
          date: new Date(),
        },
        {
          id: 9,
          content: "烤炉模式的城，到黄昏，如同打翻的调色盘一般.",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3999660853,2405177891&fm=173&app=49&f=JPEG?w=312&h=208&s=3BBC268F520645F50BAD75FA0300E039",
          count: 0,
          date: new Date(),
        },
        {
          id: 10,
          content: "幸福的定义是什么",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4159656544,2092476407&fm=173&app=49&f=JPEG?w=312&h=208&s=39937095462278A6C01C52D8030060B7",
          count: 0,
          date: new Date(),
        },
        {
          id: 21,
          content: " 想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.",
          img:
            "https://dgss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2461745328,2552791523&fm=173&app=49&f=JPEG?w=312&h=208&s=4472A277D213EF98DA9561E00300E032",
          count: 5,
          date: new Date(),
        },
        {
          id: 31,
          content: "烤炉模式的城，到黄昏，如同打翻的调色盘一般.",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3999660853,2405177891&fm=173&app=49&f=JPEG?w=312&h=208&s=3BBC268F520645F50BAD75FA0300E039",
          count: 0,
          date: new Date(),
        },
        {
          id: 19,
          content: "幸福的定义是什么",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4159656544,2092476407&fm=173&app=49&f=JPEG?w=312&h=208&s=39937095462278A6C01C52D8030060B7",
          count: 0,
          date: new Date(),
        },
        {
          id: 22,
          content: " 想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.",
          img:
            "https://dgss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2461745328,2552791523&fm=173&app=49&f=JPEG?w=312&h=208&s=4472A277D213EF98DA9561E00300E032",
          count: 5,
          date: new Date(),
        },
        {
          id: 32,
          content: "烤炉模式的城，到黄昏，如同打翻的调色盘一般.",
          img:
            "https://dgss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3999660853,2405177891&fm=173&app=49&f=JPEG?w=312&h=208&s=3BBC268F520645F50BAD75FA0300E039",
          count: 0,
          date: new Date(),
        }
      ]
    };
  },
  methods: {
  },
};
</script>

<style scoped>
.mui-ellipsis {
  display: flex;
  justify-content: space-between;
}
</style>